package com.keeson.android_cli.interfaces.contract;

import android.content.Context;
import android.widget.EditText;
import android.widget.TextView;
import com.keeson.android_cli.base.BasePresenter;
import com.keeson.android_cli.base.BaseView;
import com.keeson.android_cli.bean.request.LoginRequest;
import com.keeson.android_cli.entity.UserInfo;

import java.util.Map;

/**
 * Created by jiaqiZHou
 * on 2020/12/4
 */
public interface LoginContract {

    interface View extends BaseView {
        void loginSuccess(UserInfo data);
        void getCodeSuccess(String data);
        void setPassWordSuccess(String data);
        void forgetUserPasswordSuccess(String data);
        void checkVerificationCodeSuccess(String data);

    }

    interface Presenter extends BasePresenter {
        void login(LoginRequest postBody);
        void getCode(String phone,String area_code);
        void handCode(Context context, EditText etLoginName,TextView tv_regin, TextView tv_getcode);
        void modifyPassword(Map<String, Object> map);
        void forgetUserPassword(Map<String, Object> map);
        void checkVerificationCode(Map<String, Object> map);

    }
}
